/**
 * 根据县级编码解析出省级、市级
 * @param districtCode
 * @returns
 */
export function parseParentCodeByDistrictCode(districtCode: number | string) {
  districtCode = districtCode + ''
  const provinceCode = districtCode.substring(0, 2) + '0000'
  const cityCode = districtCode.substring(0, 4) + '00'

  return {
    provinceCode,
    cityCode,
    districtCode
  }
}
